{extend name="main/index" /}
{block name="main"}

<div class="content-page">
	<div class="content">
        <h3>角色分配</h3>
        <div>
        	<p>给{$list.username}分配权限</p>
        	<form action="{:url('admin/User/update')}" method='post'>
				<p style="width:600px">
				{volist name="users" id="v"}
				<input type="checkbox" name="role[]"  value="{$v.id}" {if condition="in_array($v.id,$role) eq true"} checked {/if}>
				{$v.name}
				&nbsp;
				&nbsp;
				&nbsp;
				{/volist}
				</p>
				<input type="hidden" name="uid" value="{$list.id}">
				<input type="submit" value="保存" class="btn btn-primary">
			</form>
        </div>
   	</div>
</div>

{/block}